<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use backend\assets\LoginAsset;

$asset = LoginAsset::register($this);
$this->title = '登录';
?>

<!DOCTYPE html>
<html lang="zh">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="ie=edge" />
        <title>登录页面</title>
        <link href="<?php echo Yii::$app->homeUrl; ?>css/common/base.css" rel="stylesheet">
        <link rel="stylesheet" href="<?php echo Yii::$app->homeUrl; ?>css/common/bootstrap.min.css">
        <link href="<?php echo Yii::$app->homeUrl; ?>css/login.css" rel="stylesheet">
        <!-- The scriptssss -->
        <script type="text/javascript" src="<?php echo Yii::$app->homeUrl; ?>js/jquery-2.1.1.min.js"></script>
        <script type="text/javascript" src="<?php echo Yii::$app->homeUrl; ?>js/bootstrap.min.js"></script>
        <script type="text/javascript" src="<?php echo Yii::$app->homeUrl; ?>js/login.js"></script>
    </head>
    <body>
        
        <article class="center">
            <header class="login">
                享点小说后台管理系统
            </header>
            <aside>
                <ul class="ul">
                    <li>登录</li>
                    <?php $form = ActiveForm::begin(['id' => 'login-form']); ?>
                    <?= $form->field($model, 'username')->textInput(['placeholder' => "请输入账户名称"])->label(false) ?>
                    <?= $form->field($model, 'password')->passwordInput(['placeholder' => "请输入密码"])->label(false) ?>
                    <?= $form->field($model, 'code')->textInput(['placeholder' => "请输入验证码"])->label(false) ?>
                    <div class="form-group">
                        <?= Html::submitButton('登 录', ['class' => 'but', 'name' => 'login-button']) ?>
                    </div>
                    <?php ActiveForm::end(); ?>						
                </ul>
            </aside>
        </article>
    </body>
</html>